/**
 * Created by alan on 2017/4/27.
 * 水文测站基本信息
 */
Ext.define('Admin.view.waterDispath.RiverBaseController', {
	extend: 'Ext.app.ViewController',
	alias: 'controller.riverBaseController',

	init: function() {

	},
	beforechange: function() {
		console.log('-----thisi s i');
		var riverGrid = this.lookupReference('riverGrid');
		var view = riverGrid.getView();
		view.refresh();
	},
	//steps下一步
	check: function() {
		var riverGrid = this.lookupReference('riverGrid');
		var store = riverGrid.getStore();
//		var stcd = this.lookupReference('stcd').getValue();
		var stNm = this.lookupReference('stNm').getValue();

		store.getProxy().extraParams = {
			river: config.RIVER,
			stNm: stNm
		};
		store.reload();
	},
	autoLoad: true
})